• Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Problem with SSL certificate cURL

    Scheduled Pinned Locked Moved Issues
    bugdocumentation
    1 Posts 1 Posters 0 Views 1 Watching
    Loading More Posts
    • Newest to Oldest
    • Oldest to Newest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      GreenApi_Admin
      last edited by

      πŸ‘€ Author: EscHelpNew
      πŸ“Š Status: 🟒 Open
      🏷️ Tags: bug, documentation
      πŸ“… Created at: 06.12.2023, 09:03:09
      πŸ”„ Updated at: 12.02.2024, 18:02:05



      Error:
      Curl error: SSL certificate problem. The cURL library cannot make a request to the Green-API server. The library certificate is probably out of date.

      Level:
      SDK

      Workaround:
      Option 1:

      1. Download the certificate bundle.

      2. Put it somewhere. In my case, that was c:\wamp\ directory (if you are using Wamp 64 bit then it's c:\wamp64).

      3. Enable mod_ssl in Apache and php_openssl.dll in php.ini (uncomment them by removing ; at the beginning). But be careful, my problem was that I had two php.ini files and I need to do this in both of them. One is the one you get from your WAMP taskbar icon, and another one is, in my case, in C:\wamp\bin\php\php5.5.12\

      4. Add these lines to your cert in both php.ini files:

        curl.cainfo="C:/wamp/cacert.pem"
        openssl.cafile="C:/wamp/cacert.pem"

      5. Restart Wamp services.

      Option 2:
      append the request code with a string
      CURLOPT_SSL_VERIFYPEER => false


      Open on GitHub

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better πŸ’—

      Register Login
      • First post
        Last post

      Menu

      • Documentation
      • SDK
      • Chatbots
      • Integrations
      • Releases
      • Articles
      • Blog
      • News
      • News archive
      • FAQ
      • Become a partner ⭐
      • Tariffs
      • Link Builder
      • About Us
      • Contacts
      • GREEN-API status

      Integrations

      • Make
      • MS Excel
      • GoHighLevel
      • Rocket.chat
      • Zapier
      • Zabbix
      • Slack
      • n8n
      • All integrations...

      SDK

      • Python
      • Node.js
      • HTML
      • 1Π‘:Enterprise
      • PHP
      • Java
      • Go
      • C++

      Chatbots

      • Python
      • Java
      • Go
      • 1Π‘:Enterprise
      • Node.js

      Legal notes

      • Terms of service
      • License agreement
      • Privacy policy
      • GREEN-API: Logo

      Products

      • GREEN-API
      • GREEN-API: WABA
      • GREEN-API: GPT
      • GREEN-API: Marketing
      • GREEN-API: Telegram πŸ”₯

      Legal notes

      • Terms of service
      • License agreement
      • Privacy policy
      • GREEN-API: Logo

      Technical support

      • github icon Green Community
      • github icon Report an issue
      • email icon support@green-api.com
      • whatsapp icon WhatsApp support channel
      • telegram icon Telegram support channel
      googlePlay Powered by GREEN-API
      astana hub logo
      Participant of the "Autonomous Cluster Fund "Astana Hub" dated November 20, 2023, No. 1767
      googlePlay googlePlay Powered by GREEN-API
      Β«Green-APIΒ» LLC
      TIN 220940032673
      Telephone: +7-999-333-12-23
      Astana, Kabanbai Batyr Avenue, building 47/2, Business Center "Alau Park", 010017, Kazakhstan
      astana hub logo
      Participant of the "Autonomous Cluster Fund "Astana Hub" dated November 20, 2023, No. 1767
      WhatsApp
      Telegram
      YouTube
      RuTube
      LinkedIn
      GREEN-API Β© 2015 - 2026
      WhatsApp
      Telegram
      YouTube
      RuTube
      LinkedIn
      Instagram
      VISA verified by visa mastercard mastercard SecureCode